package com.bo.baby2.dao;

import com.bo.baby2.entity.TUserAccount;
import org.apache.ibatis.annotations.Param;


/**
* @program: baby2_p2p
*
* @description: ${description}
*
* @author:波
*
* @create: 2020-07-12 12:55
**/


public interface TUserAccountMapper {
    int deleteByPrimaryKey(String id);

    int insert(TUserAccount record);

    int insertSelective(TUserAccount record);

    TUserAccount selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TUserAccount record);

    int updateByPrimaryKey(TUserAccount record);

    /**
     * 根据用户名查询该用户是否存在
     * @param username
     * @return
     */
    int checkUsername(@Param("username") String username);

    /**
     * 登录的方法
     * @param userAccount
     * @return
     */
    TUserAccount login(TUserAccount userAccount);

    /**
     * 修改最后登录时间
     * @return
     */
    int updLastTime(TUserAccount userAccount);
}